export const kebabCase = (str: string): string | null => {
  if (str && /[A-Z]/.test(str.charAt(0))) {
    str = str.charAt(0).toLowerCase() + str.substring(1);
  }

  return str.replace(/[A-Z]/g, i => "-" + i.toLowerCase());
};
